<?php
include("connectDB.php");

#Get VALUES
$loc_id = $_POST('loc_id');
$agenda = $_POST('agenda');
$timedate = $_POST('timedate');
$organizer = $_POST('organizer');

$result = mysql_query("INSERT INTO meetings (loc_id, agenda, timedate, organizer) VALUES('$_POST[loc_id]','$_POST[agenda]','$_POST[timedate]','$_POST[organizer]')");

echo mysql_insert_id();

mysql_close($con);
?>